#encoding:utf-8

from pojo.entity.BaseEntity import BaseEntity

class StrategyFundInout(BaseEntity):

    id=None
    realTransactionId=None
    tradeDate=None
    amount=None #策略转出转入金额
    flowDirection=None #1：从证券转入到策略。0：从策略转出到证券
    serialNo=None #银证转账流水
    flowType=None #策略资金流入流出类型。 1:银证转账；0：分红

    handleFlag=None#1:已处理； 0:未处理
    entryTime=None

    def changeFormat(self):
        return self

    def getTableName(self):
        pass

    def getTableFieldMap(self):
        pass

    def __str__(self):
        descDict = self.__dict__
        return """StrategyFundInout-----{desc}""".format(
            desc=",".join(
                ["{key}:{val}".format(key=key, val=val.encode("utf-8") if isinstance(val, unicode) else val) for
                 key, val in descDict.items()])
        )